<link href="/static/FlipClock-master/compiled/flipclock.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="/anatole/source/js/jquery.min.js"></script>
<script src="/static/FlipClock-master/compiled/flipclock.js" type="text/javascript"></script>
<script src="/static/js/com.js" type="text/javascript"></script>
<script type="text/javascript">
var clock;
if(browserRedirect()){
	readClock();

}
resizeClock();


window.onresize = resize;

function resize()
{
	 resizeClock();
}

function resizeClock(){
	var divWidth = $('.clockDiv').width();
	var bodyWidth = $('body').width();
	
	if(bodyWidth<=1200){
		$('.clock').empty();
		return false;
	}
	
	if($('.clock').html()==''){
		readClock();
	}
	
	if(divWidth>460){
		var marginWidth = (divWidth-460)/2;
	 	$('.clock').css('margin-left',marginWidth);
	}else{
	 	$('.clock').css('margin-left',0);
	}
}

function readClock(){
	 clock = $('.clock').FlipClock({
			clockFace: 'TwentyFourHourClock'
			});
}

</script>

